package com.angenela.imageshare.pojo;

import android.os.Parcel;
import android.os.Parcelable;

//implements Parcelable
public class UserAndImage  {
    private Integer imageId;
    private String src;
    private String createTime;
    private Integer star;
    private Integer tagId;
    private Integer userId;
    private String username;
    private String avatar;


    @Override
    public String toString() {
        return "ImageDTO{" +
                "imageId=" + imageId +
                ", src='" + src + '\'' +
                ", createTime='" + createTime + '\'' +
                ", star=" + star +
                ", tagId=" + tagId +
                ", userId=" + userId +
                ", username='" + username + '\'' +
                ", avatar='" + avatar + '\'' +
                '}';
    }

    public Integer getImageId() {
        return imageId;
    }

    public void setImageId(Integer imageId) {
        this.imageId = imageId;
    }

    public String getSrc() {
        return src;
    }

    public void setSrc(String src) {
        this.src = src;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getStar() {
        return star;
    }

    public void setStar(Integer star) {
        this.star = star;
    }

    public Integer getTagId() {
        return tagId;
    }

    public void setTagId(Integer tagId) {
        this.tagId = tagId;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

//    @Override
//    public int describeContents() {
//        return 0;
//    }
//
//    @Override
//    public void writeToParcel(Parcel parcel, int i) {
//        parcel.writeString(this.username);
//        parcel.writeString(this.src);
//
//    }
}
